import Mock from 'mockjs'

let getHashApi = {
  "device": Mock.mock({
    "count": 10,
    "data|10": [{
      "access_params": "string",
      "access_type": 0,
      "create_time": 1625539837103,
      "device_group_id": 0,
      "device_id|+1": 0,
      "device_type": 0,
      "name": "像机-@title(2)",
      "related_id": 0,
      "status_code": 0,
      "status_desc": "string",
      "update_time": 1625539837103,
      "url": "string",
      "video": {
        "analysis_status": 0,
        "create_time": 1625539837103,
        "filename": "文件名称-@ctitle(3, 5)",
        "hash": "string",
        "id": "@id",
        "length": 600000,
        "size": 1024,
        "update_time": 1625539837103,
        "url": "string"
      }
    }],
    "message": "成功",
    "page_count": 1,
    "page_index": 1,
    "status_code": 200
  }),
  "edge_device": Mock.mock({
    "count": 10,
    "data|10": [{
      "account": "string",
      "create_time": 1625539837103,
      "id|+1": 0,
      "ip": "IP",
      "name": "名称-@title(2)",
      "port": 0,
      "secret": "string",
      "type": 0,
      "update_time": 1625539837103
    }],
    "message": "成功",
    "page_count": 0,
    "page_index": 0,
    "status_code": 200
  }),
  "access_type": Mock.mock({
    "status": 0,
    "message": "",
    "data": [{
        "create_time": 1624002327000,
        "update_time": 1626426986000,
        "id": 1,
        "name": "rtsp",
        "title": "",
        "type": 1,
        "sort": 1,
        "enabled": 1
      },
      {
        "create_time": 1626427018000,
        "update_time": 1626427039000,
        "id": 2,
        "name": "gb",
        "title": null,
        "type": 1,
        "sort": null,
        "enabled": 1
      },
      {
        "create_time": 1626427055000,
        "update_time": 1626427055000,
        "id": 3,
        "name": "onvif",
        "title": null,
        "type": 1,
        "sort": null,
        "enabled": 1
      },
      {
        "create_time": 1626427065000,
        "update_time": 1626427065000,
        "id": 4,
        "name": "hik",
        "title": null,
        "type": 1,
        "sort": null,
        "enabled": 1
      }
    ],
    "status_code": 200,
    "page_index": 0,
    "page_count": 0,
    "count": 0
  }),
}

export default getHashApi;